package com.rw.coco.util.config;

import com.rw.coco.api.data.ConfigMapper;
import lombok.Getter;

/**
 * 可可配置类
 */
@Getter
public class CocoConfig {
    private final AnotherNameConfig anotherNameConfig;
    private final CocoCommandConfig cocoCommandConfig;
    private final CocoOption cocoOption;
    private final MainPropName mainPropName;

    public CocoConfig(ConfigMapper configMapper) {
        this.anotherNameConfig = new AnotherNameConfig(configMapper.getAnotherName());
        this.cocoCommandConfig = new CocoCommandConfig(configMapper.getCommand());
        this.cocoOption = new CocoOption(configMapper.getOption());
        this.mainPropName = new MainPropName(this.anotherNameConfig);
    }
}
